//添加客户
function addCustomer() {
	$.ajax({
		type:"POST",
		data:$("#add-customer-form").serialize(),
		url: basePath + "/customer/ajaxAddCustomer",
		dataType: "json",
		success: function(data) {
			if (data.bizSuccess) {
				location.reload();
			} else {
				alertErrorMsg(data.errorMsg);
			}
		},
		error:function () {
			alertErrorMsg("请检查网络");
		}
	})		
}

// 清空
function cleanSeach() {
	$("[name='customerID']").val("").trigger("change");
	$("[name='customerMobile']").val("");
}